package com.cpi.cornpp.monthsperiods.view;

import java.io.Serializable;

/**
 * Months Periods View
 * 
 * @author Edgar Joao
 * 
 */
public class MonthsPeriodsView implements Serializable{
	private static final long serialVersionUID = -2935809190528867899L;
	/** Serial version id */
	
	private int monthPeriodId;
	private String shortName;
	private String description;
	private int month;
	private int year;	
	private String listDescription;
	private String label;
	
	public MonthsPeriodsView() {		
	}
	
	public MonthsPeriodsView(int monthPeriodId) {
		this.monthPeriodId = monthPeriodId;
	}	
	
	public int getMonthPeriodId() {
		return monthPeriodId;
	}
	public void setMonthPeriodId(int monthPeriodId) {
		this.monthPeriodId = monthPeriodId;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		this.month = month;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public String getListDescription() {
		return listDescription;
	}
	public void setListDescription(String listDescription) {
		this.listDescription = listDescription;
	}

	
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public boolean equals(Object obj) {
		if(!(obj instanceof MonthsPeriodsView))
			return false;
		MonthsPeriodsView object = (MonthsPeriodsView)obj;
		return (object.getMonthPeriodId() == this.getMonthPeriodId());		
	}

	
}
